%% -*- coding: utf-8 -*-  
\documentclass[10pt,a4paper,headsepline,bibtotoc,twoside]{scrreprt}
\usepackage{a4wide}

%\usepackage{garamond}
%\renewcommand{\rmdefault}{ggm}

\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[portuges]{babel}

\usepackage{lmodern}
%\usepackage{garamond}
\usepackage{helvet}
\usepackage{color}

%\usepackage{ucs}
%\usepackage{textcomp}

 
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\definecolor{rltbrightred}{rgb}{1,0,0}
\definecolor{rltred}{rgb}{0.75,0,0}
\definecolor{rltdarkred}{rgb}{0.5,0,0}
%
\definecolor{rltbrightgreen}{rgb}{0,0.75,0}
\definecolor{rltgreen}{rgb}{0,0.5,0}
\definecolor{rltdarkgreen}{rgb}{0,0,0.25}
%
\definecolor{rltbrightblue}{rgb}{0,0,1}
\definecolor{rltblue}{rgb}{0,0,0.75}
\definecolor{rltdarkblue}{rgb}{0,0,0.5}

\definecolor{webred}{rgb}{0.5,.25,0}
\definecolor{webblue}{rgb}{0,0,0.75}
\definecolor{webgreen}{rgb}{0,0.5,0}
\definecolor{webbrightgreen}{rgb}{0,0.5,0}

\usepackage{listings}
\lstset{ %
  language=Python,                % the language of the code
  basicstyle=\footnotesize,           % the size of the fonts that are used for the code
  numbers=left,                   % where to put the line-numbers
  numberstyle=\footnotesize,          % the size of the fonts that are used for the line-numbers
  stepnumber=2,                   % the step between two line-numbers. If it's 1, each line 
                                  % will be numbered
  numbersep=5pt,                  % how far the line-numbers are from the code
  backgroundcolor=\color{white},      % choose the background color. You must add \usepackage{color}
  showspaces=false,               % show spaces adding particular underscores
  showstringspaces=false,         % underline spaces within strings
  showtabs=false,                 % show tabs within strings adding particular underscores
  frame=single,                   % adds a frame around the code
  tabsize=2,                      % sets default tabsize to 2 spaces
  captionpos=b,                   % sets the caption-position to
                                % bottom 
  breaklines=true,                % sets automatic line breaking
  breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
  title=\lstname,                   % show the filename of files included with \lstinputlisting;
                                  % also try caption instead of title
  numberstyle=\tiny\color{gray},        % line number style
  keywordstyle=\color{blue},          % keyword style
  commentstyle=\color{dkgreen},       % comment style
  stringstyle=\color{mauve},         % string literal style
  escapeinside={\%*}{*)},            % if you want to add a comment within your code
  morekeywords={*,...}               % if you want to add more keywords to the set
} 

\usepackage[dvips]{thumbpdf}
\usepackage[pdftex,
colorlinks=true,
urlcolor=rltblue,               % \href{...}{...}
anchorcolor=rltbrightblue,
filecolor=rltgreen,             % \href*{...}
linkcolor=rltred,               % \ref{...} and \pageref{...}
menucolor=webdarkblue,
citecolor=webbrightgreen,
pdftitle={Linguagens de Programação},
pdfauthor={José Jasnau Caeiro},
pdfsubject={linguagens de programação},
pdfkeywords={linguagens de programação Python CSharp},
pagebackref=false,
pdfpagemode=None,
bookmarksopen=true
]{hyperref}
\pdfcompresslevel=9

\usepackage[pdftex]{graphicx}
\usepackage{thumbpdf}




% %%%%%%%%%%%%%%%%%%%%%%%%%

% virgulas numericas correctas
\usepackage{icomma}

% processamento com indicação de linhas pelo pacote xdvi
\usepackage{srcltx}

\bibliographystyle{plain} 

%% introducao do ambiente de geracao de indices
\usepackage{makeidx}

\usepackage[isu,small,ruled]{caption}
\setlength{\captionmargin}{0.5cm}
\usepackage{prettyref}

%\usepackage[portuges]{minitoc}

%% pacotes matematicos AMS
\usepackage[intlimits]{amsmath}
\usepackage{amssymb}

% simbolos matematicos
%\usepackage{jeffe}
%% graficos com dvips
%%
%%
%%
%% as fontes para os graficos são de 12pt, helvetica
% \usepackage[dvips]{graphics}
\usepackage{lscape}
\usepackage{subfigure}

% captions
\usepackage{float}
\usepackage{rotating}

%% bibliografia por temas e capitulos
%\usepackage{bibtopic}

%% especificacoes para portugues
\newrefformat{teorema}{Teorema~\ref{#1}}
\newrefformat{cha}{Cap{\'\i}tulo~\ref{#1}}
\newrefformat{sec}{Sec{\c c}{\~a}o~\ref{#1}}
\newrefformat{tab}{Tab.~\ref{#1}}
\newrefformat{eq}{Eq.~\ref{#1}}
\newrefformat{def}{Def.~\ref{#1}}
%% na p{\'a}g. #2}
\newrefformat{fig}{Fig.~\ref{#1}}
%% na p{\'a}g. #2}
\newrefformat{alg}{Alg.~\ref{#1}}
%%\newrefformat{pag}{P{\'a}g.~\ref{#1}}

\newtheorem{assuncao}{Assun{\c c}{\~a}o}
\newtheorem{definicao}{Defini{\c c}{\~a}o}
\newtheorem{teorema}{Teorema}

\newcommand{\goodgap}{%
\hspace{\subfigtopskip}%
\hspace{\subfigbottomskip}}

\newcommand\glossaryname{Gloss{\'a}rio}

% processamento mais agradável de figuras
\renewcommand{\topfraction}{0.85}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.75}

%%% fontes para cabecalhos e inicios de capitulos
%%% \renewcommand{\sectfont}{\rmfamily\bfseries}

%\renewcommand{\headfont}{\scshape}


%%% novas declaracoes para amsmath.sty
%\DeclareMathOperator{\argmax}{argmax}
\def\argmax{\operatornamewithlimits{arg\,max}}
\DeclareMathOperator{\tgh}{tgh}
\DeclareMathOperator{\arctg}{arctg}
\DeclareMathOperator{\arcsen}{arcsen}
\DeclareMathOperator{\sen}{sen}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\ud}{d}
\DeclareMathOperator{\jacobian}{J}
\DeclareMathOperator{\abs}{abs}
\DeclareMathOperator{\cov}{cov}
\DeclareMathOperator{\signum}{sgn}
\DeclareMathOperator{\decibel}{dB}
\DeclareMathOperator{\pixel}{pixel}
\DeclareMathOperator{\verdade}{\mathbf{Verdade}}
\DeclareMathOperator{\falso}{\mathbf{Falso}}
\DeclareMathOperator{\probcdf}{Pr}


%%
\usepackage{supertabular}

% posicionamento arbitrario de texto
\usepackage[absolute]{textpos}
\usepackage{type1cm}
\usepackage{lettrine}
\usepackage{multind}
\makeindex{aut}
\makeindex{alf}
\hyphenation{axlrmen-xtrxofgggttat}

\begin{document}

% indispensável para garamond
%\garamond
%% modos de armazenamento de imagens em Postscript encapsulado
%% e comprimido
\DeclareGraphicsRule{eps.gz}{eps}{eps.bb}{`gunzip -c #1}
%% directoria onde se armazena os ficheiros
\graphicspath{{EPS/}}


%% \symbol{64} corresponde a @
%% parte frontal da tese
%\frontmatter
%\input{capaprincipal}
%\input{capacomment}
%\input{capa}
\thispagestyle{empty}
\cleardoublepage


%% corpo do livro
%\mainmatter
%% realizacao de miniindices de conteudo


\cleardoublepage
\pagestyle{headings}
\setcounter{page}{1}
\pagenumbering{roman}
%\addcontentsline{toc}{section}{Contents}
\addcontentsline{toc}{section}{Índice Geral}
\tableofcontents
\cleardoublepage
 % \addcontentsline{toc}{section}{Lista de Figuras}
 % \listoffigures
 % \cleardoublepage
 % \addcontentsline{toc}{section}{Lista de Tabelas}
 % \listoftables
 % \cleardoublepage
%% \include{listasimbolos}
% \cleardoublepage
\pagestyle{headings}
\setcounter{page}{1}
\pagenumbering{arabic}


%%\part{}

\include{intro}
\cleardoublepage

\include{teoricas}
\cleardoublepage

\include{praticas}
\cleardoublepage

\include{praticascsharp}
\cleardoublepage


\include{documentacao}
\cleardoublepage


\bibliography{ebooks.bib}

% \cleardoublepage
% \markboth{\textsc{Índices}}{\textsc{Índices}}
% \markright{\textsc{Índice de Autores}}

% \section*{Índices}
% \label{sec:indices}
% \addcontentsline{toc}{section}{Índices}
% \cleardoublepage

% \printindex{aut}{Índice de Autores}

% \cleardoublepage
% \markright{\textsc{Índice Remissivo}}
% \printindex{alf}{Índice Remissivo}



\end{document}

%% new.tex
%% 
%% Made by Jose Jasnau Caeiro
%% Login   <jasnau@isolda>
%% 
%% Started on  Thu Sep 10 10:27:30 2009 Jose Jasnau Caeiro
%% Last update Thu Sep 10 10:27:30 2009 Jose Jasnau Caeiro
%%
